﻿using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using YiShop.System.Entities;

namespace YiShop.System.Controllers
{
    //[ApiController]
    [Route("[controller]/[action]")]
    public class ScheduleTaskController : ControllerBase
    {
        ISqlSugarClient _db;

        public ScheduleTaskController(ISqlSugarClient db)
        {
            _db = db;
        }

        [HttpGet]
        public List<ScheduleTask> List()
        {
           return _db.Queryable<ScheduleTask>().ToList();
        }
    }
}
